/**
 * 
 */
package niuke.souhu;

import java.util.Scanner;

/**
 * @author zhongfang
 *
 */
public class 数据分页说明 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		long n = scanner.nextLong();
		scanner.nextLine();
		String[] a = scanner.nextLine().split(" ");
		long pageIndex = scanner.nextLong();
		long countPerPage = scanner.nextLong();// 从0开始
		scanner.close();
		long pageCount = n / countPerPage;// 总共页数
		if (n % countPerPage != 0) {
			pageCount++;
		}
		if (pageIndex < 0 || pageIndex >= pageCount) {
			System.out.println("超过分页范围");
			return;
		}
		long start = pageIndex * countPerPage;
		long end = Math.min(n, start + countPerPage);
		for (long i = start; i < end; i++) {
			System.out.println(a[(int) i]);
		}
	}
}
